/// tag : "car"
/// name : "发现车辆变化"
/// type : "ai"

/// 筛选条件 - 数据格式
class TangeEqFilterKeyData {
  List<TangeEqFilter>? keyList;

  TangeEqFilterKeyData.fromJson(dynamic json) {
    keyList = [];

    // 添加固定的死数据
    keyList?.add(TangeEqFilter(
        tag: "99999", // 这里假设你有一个默认的 tag 值
        name: "全部",
        type: "type" // 这里假设你有一个默认的 type 值
    ));

    for (var element in json) {
      keyList?.add(TangeEqFilter.fromJson(element));
    }
  }
}

class TangeEqFilter {
  TangeEqFilter({
    this.tag,
    this.name,
    this.type,
  });

  TangeEqFilter.fromJson(dynamic json) {
    tag = json['tag'];
    name = json['name'];
    type = json['type'];
  }

  String? tag;
  String? name;
  String? type;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['tag'] = tag;
    map['name'] = name;
    map['type'] = type;
    return map;
  }
}
